package com.nut.lmsc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nut.lmsc.entity.GoodsSellMode;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface GoodsSellModeMapper extends BaseMapper<GoodsSellMode> {

    @Select("select * from biz_goods_sell_mode where goods_id=#{goodsId} and deleted=0 order by sell_mode,count")
    List<GoodsSellMode> selectByGoodsId(@Param("goodsId") Integer goodsId);

}